package cn.itlaobing.service;

import cn.itlaobing.dao.TrainDao;

import java.sql.SQLException;
import java.util.Map;

/**
 * Created by kevin on 2017/11/10.
 */
public class TrainService {
    private TrainDao trainDao=new TrainDao();
    public Map<String,Object>findAll(String trainNum,String statrtStation,String endStation)throws SQLException{
            Map<String,Object> map=null;
            map=trainDao.queryAll(trainNum,statrtStation,endStation);
            return map;
    }
}
